﻿using System.Collections.Generic;

using Pronghorn.Core;

namespace TestDoubles
{
	public class StubSkinLocator : ISkinLocator
	{
		#region Public Methods

		public string GetAssemblyName()
		{
			return "Skins.Basic.Home.dll";
		}

		public string GetNameSpace()
		{
			return "ViewEngine_Tests";
		}

		public string GetPathToSkin()
		{
			return "Skins/Basic/Home.html";
		}

		public IList<string> GetSkinLines()
		{
			return GetView();
		}

		public string GetSkinType()
		{
			return "Skins_Basic_Home";
		}

		public static IList<string> GetView()
		{
			return new List<string>
			       	{
			       		"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">",
			       		"<html>",
			       		"	<head>",
			       		"		<title>#{title}</title>",
			       		"		<!--#{metatags}-->",
			       		"		<!--#{scripts}-->",
			       		"		<!--#{styles}-->",
			       		"	</head>",
			       		"	<body>",
			       		"<!--#{foreach scene in scenes}-->",
			       		"     <img src=\"#{scene.src}\" title=\"#{scene.title}\" border=\"0\"/>",
			       		"<!--#{endforeach}-->",
			       		"	    <div class=\"className\" onClick=\"alert('my name here');\">",
			       		"	        <div>",
			       		"            #{area.LeftNavBar}",
			       		"            </div>",
			       		"	        <div>",
			       		"            #{area.Content}",
			       		"            </div>",
			       		"	        <div>",
			       		"            #{area.RightNavBar}",
			       		"            </div>",
			       		"	    </div>",
			       		"	</body>",
			       		"</html>"
			       	};
		}

		#endregion Public Methods
	}
}